home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 111 / PC Guia 111.iso / Software / Utils / NetObjects Fusion 7.0 / NOF7Trial.exe / data1.cab / Program_Executable_Files / NetObjects_System / effects.js < prev    next >
Text File  |  2002-06-12  |  23KB  |  401 lines

  1. function F_C1(Z5,Z8){
  2. this.type="move";this.object=Z5;this.E5=new F_B8(Z5,Z8);
  3. if(F_NN&&(Z5.parent!=null)){var AV=Z5.K1('absolute')- (Z5.parent.K1('absolute')+Z5.parent.I6());var N2=Z5.J2('absolute')- (Z5.parent.J2('absolute')+Z5.parent.I3());var A8=Z5.parent.I2()- AV;var T1=Z5.parent.I7()- N2;}else{var AV=Z5.K1('absolute')- Z5.J7();var N2=Z5.J2('absolute')- Z5.J6();var A8=Z5.K3()- AV;var T1=Z5.K4()- N2;}
  4. var D4=Z5.I7();var D5=Z5.I2();var d=this.E5.F8;
  5. if((d==0)|| (d>270))
  6. {var p=F_calcDirection(d,N2+D4,AV+D5);}
  7. else 
  8. {if(d<=90)
  9. {var p=F_calcDirection(d,T1,AV+D5);}
  10. else 
  11. {if(d<=180)
  12. {var p=F_calcDirection(d,T1,A8);}
  13. else 
  14. {if(d<=270)
  15. {var p=F_calcDirection(d,N2+D4,A8);}
  16. }
  17. }
  18. }
  19. this.E5.U9(p.x,-p.y,0,0,0,0);}
  20. F_C1.prototype=new F_effectPrototype;
  21. function F_cMoveBy(Z5,Z8){
  22. this.type="move";this.object=Z5;this.E5=new F_B8(Z5,Z8);this.E5.showHide="";this.E5.S7=false;
  23. var x=Z8.J8( "x",0);var y=Z8.J8( "y",0);
  24. this.E5.U9(x,y,0,0,0,0);}
  25. F_cMoveBy.prototype=new F_effectPrototype;
  26. function F_cMoveTo(Z5,Z8){
  27. this.type="move";this.object=Z5;this.E5=new F_B8(Z5,Z8);this.E5.showHide="";this.E5.S7=false;
  28. if(Z8=="Saved Position"){var x=Z5.T3.x - Z5.J2('style');var y=Z5.T3.y - Z5.K1('style');}else{
  29. var x=Z8.J8( "x",0)- Z5.J2('absolute');var y=Z8.J8( "y",0)- Z5.K1('absolute');}
  30. this.E5.U9(x,y,0,0,0,0);}
  31. F_cMoveTo.prototype=new F_effectPrototype;
  32. function F_E6(Z5,Z8){
  33. this.type="transition";this.object=Z5;this.E5=new F_B8(Z5,Z8);
  34. var width=Z5.I7();var height=Z5.I2();var p=F_calcDirection(this.E5.F8,width,height);
  35. var t=new B9(0,0,0,0,0,0);t.x=p.x;t.y=-p.y;F_B3(this.E5.F8,t,p);this.E5.U9(t.x,t.y,t.top,t.right,t.bottom,t.left);}
  36. F_E6.prototype=new F_effectPrototype;
  37. function F_F4(Z5,Z8){
  38. this.type="transition";this.object=Z5;this.E5=new F_B8(Z5,Z8);
  39. this.E5.F8=(180+this.E5.F8)%360;var width=Z5.I7();var height=Z5.I2();var p=F_calcDirection(this.E5.F8,width,height);var t=new B9(0,0,0,0,0,0);F_B3(this.E5.F8,t,p);this.E5.U9(t.x,t.y,t.top,t.right,t.bottom,t.left);}
  40. F_F4.prototype=new F_effectPrototype;
  41. function F_C7(Z5,Z8){
  42. this.type="transition";this.object=Z5;this.E5=new F_B8(Z5,Z8);
  43. var width=Math.ceil(Z5.I7()/2);var height=Math.ceil(Z5.I2()/2);
  44. this.E5.U9(0,0,height,-width,-height,width);}
  45. F_C7.prototype=new F_effectPrototype;
  46. function F_effectPrototype(){this.M4=F_G9;this.start=F_H3;this.finish=F_G7;this.stop=F_effectStop;this.restart=F_effectRestart;this.U1=F_U1;}
  47. function F_U1(){return(this.E5.H1(new Date()));}
  48. function F_H3(){this.object.U8();if(!document.main.D6)
  49. sendMsg(this.object.W4,(this.type=="move"?'Motion Started':'Transition Started'),'',this);this.E5.H1("start");this.U1();}
  50. function F_G7(){this.E5.H1("finish");if(!document.main.D6){sendMsg(this.object.W4,(this.type=="move"?'Motion Ended':'Transition Ended'),'',this);if(this.E5.message!="")
  51. sendMsg(this.object.W4,this.E5.message,'',this);}
  52. this.object.C4();this.object.S5();}
  53. function F_G9(){if(document.main.D6)    
  54. return(false);
  55. clearTimeout(this.timer);this.E5.H1("finish");return(true);}
  56. function F_effectStop(){clearTimeout(this.timer);return(true);}
  57. function F_effectRestart(){this.timer=setTimeout( this.object.textRef+'.U2("'+this.type+'");',this.E5.rate);return(true);}
  58. function F_B8 (Z5,Z8){
  59. this.object=Z5;if(typeof(Z8)=="string"){this.duration=10;this.inDuration=2;this.outDuration=2;this.rate=10;this.repeat=1;this.reverse=true;this.F8=(F_I8 (Z8)% 360);this.showHide=F_L1 (Z8);this.message="";}else{
  60. this.duration=Z8.J8( "duration",10);this.inDuration=Z8.J8( "inDuration",2);this.outDuration=Z8.J8( "outDuration",2);
  61. if(this.duration==0)this.duration=1;if(this.inDuration>=this.duration){this.inDuration=this.duration-1;this.outDuration=0;}else{if((this.inDuration+this.outDuration)>=this.duration){this.outDuration=this.duration - this.inDuration - 1;}    
  62. }
  63. this.rate=Z8.J8( "rate",10);this.repeat=Z8.J8( "repeat",1);
  64. this.reverse=(Z8.J8( "reverse",false));
  65. this.F8=Z8.J8( "direction",90)% 360;this.showHide=Z8.J8( "hide","show").toLowerCase();this.message=Z8.J8( "message","");}
  66. this.S7=true;
  67. this.I=2 * this.inDuration / Math.PI;this.O=2 * this.outDuration / Math.PI;this.Mid=this.duration - this.inDuration - this.outDuration;this.factor=1/(this.Mid+this.I+this.O);this.midTest=this.inDuration+this.Mid;this.inRad=Math.PI / (2 * this.inDuration);this.outRad=Math.PI / (2 * this.outDuration);
  68. this.H6=false;this.offset=new B9(0,0,0,0,0,0);
  69. this.H2();}
  70. function B9(x,y,top,right,bottom,left){this.x=Math.floor(x);this.y=Math.floor(y);this.top=Math.floor(top);this.right=Math.floor(right);this.bottom=Math.floor(bottom);this.left=Math.floor(left);}
  71. F_R7("F_B8.prototype.",
  72. "G8","H1","U9","F9","H2"
  73. );
  74. function F_H1(AM){var d=this.object;if(AM=="start")
  75. {
  76. if (this.showHide!="")this.object.V6("inherit");return(true);}
  77. if(AM=="finish")
  78. {
  79. if ((this.showHide=="hide")&!this.H6)d.V6("hidden");this.H6=false;if (this.S7)
  80. this.F9(0);return(false);}
  81. var AD=this.G8(AM);if (this.showHide=="show")AD=1 - AD;if (this.H6)AD=1 - AD;this.F9(AD);if(AM.getTime()>this.endTime)
  82. {
  83. if(--this.repeat>0){
  84. if(this.reverse){
  85. this.H6=!this.H6;}
  86. this.H2();    
  87. }else{return(false);
  88. }
  89. }
  90. if (d.moveCollision!=null)F_C3(d,"move");return(true);}
  91. function F_F9(AD){
  92. var d=this.object;with(this.dest){
  93. var O6=new B9(
  94. Math.ceil(x * AD),
  95. Math.ceil(y * AD),
  96. Math.ceil(top * AD),
  97. Math.ceil(right * AD),
  98. Math.ceil(bottom * AD),
  99. Math.ceil(left * AD));}
  100. var a=(O6.x - this.offset.x);
  101. var b=(O6.y - this.offset.y);
  102. if((a!=0)|| (b!=0)){    
  103. d.offset(a,b);}
  104. with(d.style){if(navigator.appName=='Netscape')
  105. {clip.top=clip.top+(O6.top - this.offset.top);clip.right=clip.right+(O6.right - this.offset.right);clip.bottom=clip.bottom+(O6.bottom - this.offset.bottom);clip.left=clip.left+(O6.left- this.offset.left);
  106. }else{
  107. with(d){this.object.U5(new F_E9( 
  108. I3()+(O6.left- this.offset.left),I6()+(O6.top - this.offset.top),I5()+(O6.right - this.offset.right),I1()+(O6.bottom - this.offset.bottom)
  109. ));}
  110. }
  111. }
  112. this.offset=O6;}
  113. function F_G8(AM){
  114. with(this){var time=(AM.getTime()- this.startTime)/(100)
  115. if ( time<inDuration){
  116. return((I - (Math.cos(time *inRad)* I))* factor);}
  117. else{if ( time<=midTest){
  118. return((time - inDuration+I)* factor);}
  119. else{
  120. if ( time>=duration)return(1);return(((Math.sin((time - inDuration - Mid)* outRad)* O)+I+Mid)* factor);}
  121. }
  122. }    
  123. }
  124. function F_U9(x,y,top,right,bottom,left){this.dest=new B9(x,y,top,right,bottom,left);}
  125. function F_H2(){this.startTime=(new Date()).getTime();this.endTime=this.startTime+(this.duration*100);
  126. }
  127. function F_U2(AO){var Y0=this[AO];
  128. if(Y0!=null){if(Y0.U1())
  129. Y0.timer=F_setTimeout(this.timeoutTest,this.textRef,'U2("'+Y0.type+'")',Y0.E5.rate);
  130. else
  131. this.H4(AO);}
  132. }
  133. function F_W2(Y0,Z8){var t=new Y0(this,Z8);if(this[t.type]!=null){
  134. if(!this[t.type].M4())
  135. return(false);}
  136. this[t.type]=t;this[t.type].start();
  137. this[t.type].timer=F_setTimeout(this.timeoutTest,this.textRef,'U2("'+this[t.type].type+'")',this[t.type].E5.rate);
  138. return(true);}
  139. function F_H4(AO){var t=this[AO];this[AO]=null;t.finish();}
  140. F_prototype("F_E2.prototype.",
  141. "U2","F_U2","H4","F_H4","W2","F_W2");
  142. function F_calcDirection(F8,AS,Y5)
  143. {F8=F8 % 360;AB=F8 * (Math.PI/180);if ((F8 % 90)==0)
  144. {BA=0;BB=0;if(F8==0)BB=Y5;if(F8==90)BA=AS;if(F8==180)BB=-Y5;if(F8==270)BA=-AS;}
  145. else 
  146. {
  147. BA=AS;BB=    AS / Math.tan(AB);if(F8>=180)
  148. {BB=-BB;BA=-BA;}
  149. if (Math.abs(BB)>Y5)
  150. {BB=Y5;BA=Y5 * Math.tan(AB);if((F8>90)&&(F8<270))
  151. {BB=-BB;BA=-BA;}
  152. }
  153. }
  154. return(new F_E7(BA,BB));}
  155. function F_B3(F8,clip,R3){if((F8==0)|| (F8>270)){clip.left=-R3.x;clip.top=R3.y;
  156. }
  157. else 
  158. if(F8<=90){clip.right=-R3.x;clip.top=R3.y;
  159. }
  160. else 
  161. if(F8<=180){clip.right=-R3.x;clip.bottom=R3.y;
  162. }
  163. else 
  164. if(F8<=270){clip.left=-R3.x;clip.bottom=R3.y;
  165. }
  166. }
  167. function F_L1 (AI){if (AI.substring(0,2)=="In")return("show");if (AI.substring(0,3)=="Out")return("hide");return("");}
  168. function F_I8 (AI){
  169. var t=AI;if (t.indexOf("Top Right")!=-1)return (45);if (t.indexOf("Top Left")!=-1)return (315);if (t.indexOf("Bottom Right")!=-1)return (135);if (t.indexOf("Bottom Left")!=-1)return (225);if (t.indexOf("Top")!=-1)return (0);if (t.indexOf("Bottom")!=-1)return (180);if (t.indexOf("Right")!=-1)return (90);if (t.indexOf("Left")!=-1)return (270);return(0)
  170. }
  171. function F_C8 (){this.dragCollision=null;this.dropCollision=null;    
  172. this.moveCollision=null;    
  173. }
  174. function F_A3 (Z8){var o=Z8.J8( "objectID",null);if(document.objectModel[o]){
  175. var t=Z8.J8( "when","drop")+"Collision";if(this[t]==null)
  176. this[t]=new Array(0);this[t][this[t].length]=new F_B6(
  177. o,
  178. Z8.J8( "message","collision"),
  179. Z8.J8( "type","intersection"));}
  180. }
  181. function F_B6(F7,message,type){this.F7=F7;this.message=message;this.type=type;this.AX=false;this.X0=F_X0;}
  182. function F_S6(G4){with(G4){if(dragCollision!=null)
  183. for ( var i=0;i<dragCollision.length;i++)
  184. dragCollision[i].AX=false;if(dropCollision!=null)
  185. for ( var i=0;i<dropCollision.length;i++)
  186. dropCollision[i].AX=false;if(moveCollision!=null)
  187. for ( var i=0;i<moveCollision.length;i++)
  188. moveCollision[i].AX=false;}
  189. }
  190. function F_C3(G4,AR){var c=G4[AR+"Collision"];var o=false;for ( var i=0;i<c.length;i++){var o=false;var d=c[i];var P4=document.objectModel[d.F7];if ((d.type=="intersection")&&F_X0(G4,P4,"int"))
  191. o=true;if ((d.type=="not intersection")&&!F_X0(G4,P4,"int"))
  192. o=true;if ((d.type=="contained by")&&F_X0(G4,P4,"cont"))
  193. o=true;if ((d.type=="not contained by")&&!F_X0(G4,P4,"cont"))
  194. o=true;if ((d.type=="contains")&&F_X0(P4,G4,"cont"))
  195. o=true;if ((d.type=="not contains")&&!F_X0(P4,G4,"cont"))
  196. o=true;if ((d.type=="mouse inside")&&F_R4(P4,window.NOFevent.pageX,window.NOFevent.pageY))
  197. o=true;if ((d.type=="mouse not inside")&&!F_R4(P4,window.NOFevent.pageX,window.NOFevent.pageY))
  198. o=true;if(o){if (d.AX==false){sendMsg(G4.W4,d.message,d.F7,G4.W4);d.AX=true;}
  199. }
  200. else 
  201. d.AX=false;}
  202. }
  203. function F_X0(P5,P6,W9){
  204. with(P5){var x=J2('absolute');var y=K1('absolute');var l1=x+I3();var t1=y+I6();var r1=x+I5();var b1=y+I1();}
  205. with(P6){var x=J2('absolute');var y=K1('absolute');var l2=x+I3();var t2=y+I6();var r2=x+I5();var b2=y+I1();}
  206. if (W9=="int")
  207. if((l1>=l2&&l1<=r2)|| (r1>=l2&&r1<=r2)|| (l1<l2&&r1>r2))
  208. if((t1>=t2&&t1<=b2)|| (b1>=t2&&b1<=b2)|| (t1<t2&&b1>b2))
  209. return(true);if (W9=="cont")
  210. if((l1>=l2)&&(r1<=r2))
  211. if((t1>=t2)&&(b1<=b2))
  212. return(true);return(false);}
  213. function F_V0(Z8){with(document){if(F_dragLayer==null)
  214. F_dragLayer=new Array;
  215. var L9=-1;for(var i=(F_dragLayer.length-1);i>-1;i--)
  216. if(F_dragLayer[i].layer==this)
  217. L9=i;if(L9!=-1)
  218. F_dragLayer[L9]    ={layer:this,type:Z8};else
  219. F_dragLayer[F_dragLayer.length]={layer:this,type:Z8};
  220. F_S6(this);if(navigator.appName=='Netscape'){document.captureEvents(Event.MOUSEMOVE);this.Q4=window.NOFevent.pageX;this.Q5=window.NOFevent.pageY;
  221. }else{document.onmousemove=F_L6;this.Q4=window.NOFevent.pageX;this.Q5=window.NOFevent.pageY;}
  222. this.fastDrag=false;if(this.A2){this.T7=(this.A2['Drag Started']!=null);this.fastDrag=((!this.T7)&&(this.dragBoundries=="none")&&(this.A2['Dragged']==null)&&(this.dragCollision==null));}
  223. }
  224. }
  225. function F_drag (x,y){if(document.F_dragLayer!=null){for(var i=(document.F_dragLayer.length-1);i>-1;i--){var dObj=document.F_dragLayer[i];var d=dObj.layer;if(d.T7){sendMsg(d.W4,'Drag Started','',null);d.T7=false;}
  226. if(typeof d.Q4=="undefined"){d.Q4=x;d.Q5=y;}
  227. var BA=d.Q4 - x;var BB=d.Q5 - y;
  228. if((d.parent!=null)&&(d.dragBoundries=="to container object")){if( (d.J2('absolute')    +d.I3()- d.parent.I3()- d.parent.J2('absolute')- BA)<0)
  229. BA=d.J2('absolute')+d.I3()- d.parent.I3()- d.parent.J2('absolute');if( (d.J2('absolute')+d.I5()- BA)>(d.parent.I5()+d.parent.J2('absolute')))
  230. BA=d.J2('absolute')+d.I5()- (d.parent.I5()+d.parent.J2('absolute'));if( (d.K1('absolute')+d.I1()- BB)>(d.parent.I1()+d.parent.K1('absolute')))
  231. BB=d.K1('absolute')+d.I1()- d.parent.I1()- d.parent.K1('absolute');if( (d.K1('absolute')+d.I6()- d.parent.I6()- d.parent.K1('absolute')- BB)<0)
  232. BB=d.K1('absolute')+d.I6()- d.parent.I6()- d.parent.K1('absolute');}
  233. d.Q4=d.Q4 - BA;d.Q5=d.Q5 - BB;d.offset (-BA,-BB);if(d.A2['Dragged']!=null)sendMsg(d.W4,'Dragged','',null);if (d.dragCollision!=null)F_C3(d,"drag");}
  234. }
  235. }
  236. function F_endDrag (){if(document.F_dragLayer){sendMsg(this.W4,'Drag Ended','',null);if (this.dropCollision!=null)F_C3(this,"drop");var d=new Array(0);for(var i=0;i<document.F_dragLayer.length;i++){if(document.F_dragLayer[i].layer!=this)
  237. d[d.length]=document.F_dragLayer[i];}
  238. if(d.length>0){document.F_dragLayer=d;}else{document.F_dragLayer=null;if(navigator.appName=='Netscape'){document.releaseEvents (Event.MOUSEMOVE);}else{document.onmousemove=null;window.event.returnValue=false
  239. window.event.cancelBubble=true
  240. }
  241. }
  242. }
  243. }
  244. F_prototype("F_E2.prototype.",
  245. "A3","F_A3","C8","F_C8","V0","F_V0","endDrag","F_endDrag");    
  246. if(navigator.appName=='Netscape')
  247. {}else{
  248. }    
  249. function F_setSrc(Z8){if(typeof this.Q1!="undefined"){    
  250. this.Q1.src=Z8;}
  251. }
  252. function F_setLowsrc(Z8){if(typeof this.Q1!="undefined"){    
  253. this.Q1.src=Z8;}
  254. }
  255. function F_setImage(Z8){var a=["Image 1 (Normal)","Image 2 (Highlighted)","Image 3 (Depressed)","Image 4 (Selected)","Image 5","Image 6","Image 7","Image 8","Image 9","Image 10"];if (typeof Z8!="object")return(false);    
  256. for ( var i=0;i<a.length;i++){
  257. var b=Z8.J8( a[i],"");if(b!=""){this.images[a[i]]=new Object();this.images[a[i]].image=new Image();if(!F_NN)this.images[a[i]].image.src=b;
  258. this.images[a[i]].source=b;this.images[a[i]].complete=false;}
  259. }
  260. if(F_NN){this.setImageLoad();}
  261. return(true);}
  262. function F_setImageLoad(p){if(p){this.images[p].complete=true;}
  263. for ( var i in this.images){with(this.images[i]){if(!complete){image.src=source;
  264. image.onLoad=new Function(this.textRef+".setImageLoad('"+i+"')");break;}else{if(typeof image!="undefined"){image.onLoad=null;}
  265. }
  266. }
  267. }
  268. }
  269. function F_setImageExpression(){var a=["Image 1 (Normal)","Image 2 (Highlighted)","Image 3 (Depressed)","Image 4 (Selected)","Image 5","Image 6","Image 7","Image 8","Image 9","Image 10"];var o=new Object();for ( var i=0;i<a.length;i++){
  270. if(F_setImageExpression.arguments.length>i)
  271. {o[a[i]]=F_setImageExpression.arguments[i];}
  272. }
  273. return(o);}
  274. function F_useImage(Z3){var t=Z3;if(typeof this.Q1!="undefined")    
  275. if((typeof this.images[t]!="undefined")&&(this.images[t]!=null))
  276. this.Q1.src=this.images[t].source;}
  277. function F_IEsound(command){if (!(!F_NN&&F_MAC)){
  278. if (command=="play")
  279. if(this.Q1.run)this.Q1.run();
  280. if (command=="stop")
  281. if(this.Q1.stop)this.Q1.stop();if (command=="pause")
  282. if(this.Q1.pause)this.Q1.pause();}
  283. }
  284. function F_AZ(f,Z8){if(typeof Z8=="object"){var Z0=parseInt(Z8.J8( "left",0));var AN=parseInt(Z8.J8( "top",0));var AS=parseInt(Z8.J8( "width",0));var Y5=parseInt(Z8.J8( "height",0));}
  285. if (f=="open"){var n=Z8.J8( "name","myWindow").replace(/\W/gi,"");var p="width="+Z8.J8( "width","")+
  286. ",height="+Z8.J8( "height","")+
  287. ",top="+Z8.J8( "top","")+
  288. ",left="+Z8.J8( "left","")+
  289. ",toolbar="+Z8.J8( "toolbar","")+
  290. ",location="+Z8.J8( "location","")+
  291. ",menubar="+Z8.J8( "menubar","")+
  292. ",status="+Z8.J8( "status","")+
  293. ",resizable="+Z8.J8( "resizable","")+
  294. ",directories="+Z8.J8( "directories","")+
  295. ",scrollbars="+Z8.J8("scrollbars","");
  296. var w=(window.open(Z8.J8( "URL",""),n,p))
  297. document.F_windows[n]=w;
  298. if(F_NN)w.focus();    
  299. return(w);
  300. }
  301. if (f=="prompt")
  302. return(window.prompt(Z8.J8( "message",""),Z8.J8("defaultValue","")));if (f=="set status"){
  303. window.status=Z8;return(false);}
  304. if (f=="move to")
  305. window.moveTo(Z0,AN);if (f=="move by")
  306. window.moveBy(Z0,AN);if (f=="resize to"){if(navigator.appName=='Netscape')
  307. top.resizeTo(AS,Y5);else
  308. top.resizeTo(AS,Y5);}
  309. if (f=="resize by")
  310. window.resizeBy(AS,Y5);if (f=="scroll to")
  311. window.scrollTo(Z0,AN);if (f=="scroll by")
  312. window.scrollBy(Z0,AN);if (f=="delayed action"){var m='sendMsg("'+this.W4+'","'+Z8.J8("action","")+'")';var d=Z8.J8("delay","60")*1000;var W9="top.frames['"+self.name+"'].sendMsg";if(Z8.J8("continuous",false)){F_setInterval(this.timeoutTest,F_getFrameRef(),m,d);
  313. }else{
  314. F_setTimeout(this.timeoutTest,F_getFrameRef(),m,d);
  315. }
  316. }
  317. if (f=="browser type"){var ms=navigator.appVersion.indexOf("MSIE");var nn=navigator.appName=="Netscape";var ie4=(ms>0)&&(parseInt(navigator.appVersion.substring(ms+5,ms+6))>=4);var nn4=(nn)&&(parseInt(navigator.appVersion.substring(0,1))>=4);var t=Z8;if((t=="Is Navigator")&&(nn4))
  318. return(true);if((t=="Is Internet Explorer")&&(ie4))
  319. return(true);return(false);}
  320. if (f=="message to window"){msg=new F_cMessage(Z8.J8("message",""),new F_Parm(),false,null);var w=document.F_windows[Z8.J8("window","")];if (typeof w=="undefined")
  321. var w=window.open("",Z8.J8("window",""));if(typeof w!="undefined")
  322. if(typeof w.document!="undefined")
  323. if(typeof w.document.objectModel!="undefined"){var target=w.document.objectModel[Z8.J8("object","")];if(typeof target!="undefined"){return(msg.T5(target));}
  324. }
  325. }
  326. return(null);}
  327. function F_commandsInit(){for (var c in this.E4){this.E4[c].A4=F_A4;this.E4[c].A4(c);}
  328. }
  329. function F_A4(AO){
  330. if(AO=="vis"){F_A6(this,new Array(    
  331. "Move To","this.W2(F_cMoveTo,msg.data)","Move By","this.W2(F_cMoveBy,msg.data)","Fly","this.W2(F_C1,msg.data)","Iris","this.W2(F_C7,msg.data)","Peek","this.W2(F_E6,msg.data)","Wipe","this.W2(F_F4,msg.data)","Hide","this.hide()","Show","this.show()","Toggle Visibility","this.V6('toggle')","Bring To Front","this.B1()","Send To Back","this.U0()",
  332. "Bring Forward","this.shiftZindex1(1)","Send Backward","this.shiftZindex1(-1)",
  333. "Set Position","this.V3(msg.data)","Get Position","msg.returnValue=this.J9('absolute')","Get Z-Index","msg.returnValue=this.K6()","Set Z-Index","msg.returnValue=this.setIndex(msg.data)","Save Position","this.T3=this.J9('style')","Restore Position","this.restorePosition(this.T3)",
  334. "Set Left","this.V1(msg.data)","Get Left","msg.returnValue=this.J2('absolute')","Set Top","this.V4(msg.data)","Get Top","msg.returnValue=this.K1('absolute')","Set Clip Left","this.U4(msg.data)","Set Clip Top","this.U7(msg.data)","Set Clip Right","this.U6(msg.data)","Set Clip Bottom","this.U3(msg.data)","Get Clip Left","msg.returnValue=this.I3()","Get Clip Top","msg.returnValue=this.I6()","Get Clip Right","msg.returnValue=this.I5()","Get Clip Bottom","msg.returnValue=this.I1()","Start Drag","this.V0(msg.data)","End Drag","this.endDrag()","Constrain Drag","this.dragBoundries=msg.data","Set Collision Detection",    "this.A3(msg.data)","Clear Collision Detection","this.C8(msg.data)","Set Masking","this.N6=eval(msg.data)","Get Masking","msg.returnValue=this.N6","Set Filter","this.style.filter=msg.data","Delay","this.AZ('delayed action',msg.data)","Display File","this.setSource(msg.data)",    
  335. "Display HTML","this.writeSource(msg.data)","Set Draggable","this.G3=eval(msg.data)","Get Draggable","msg.returnValue=this.G3"    ));}
  336. if(AO=="img"){F_A6(this,new Array(    
  337. "Set Src","this.setSrc(msg.data)","Set Lowsrc","this.setLowsrc(msg.data)","Set Image",    "this.setImage(msg.data)","Use Image",    "this.useImage(msg.data)"));F_A5(this,"J3","Src","Lowsrc");
  338. F_A5(this,"V2");
  339. this.A4("vis");}
  340. if(AO=="nav"){this.A4("vis");}
  341. if(AO=="act"){this.A4("vis");}
  342. if(AO=="vid"){
  343. this.A4("vis");}
  344. if(AO=="shk"){F_A6(this,new Array(    
  345. "Play","this.Q1.Play()","Stop","this.Q1.Stop()","Rewind",    "this.Q1.Rewind()","Go To Frame","this.Q1.GotoFrame(msg.data)"));this.A4("vis");}
  346. if(AO=="jav"){this.A4("vis");}
  347. if(AO=="jbn"){this.A4("vis");}
  348. if(AO=="snd"){if(navigator.appName=='Netscape'){    
  349. F_A6(this,new Array(    
  350. "Play","this.Q1!=null?this.Q1.play(false):void(0)","Pause","this.Q1!=null?this.Q1.pause():void(0)","Stop","this.Q1!=null?this.Q1.stop():void(0)",
  351. "Get Volume",    "msg.returnValue=this.Q1.GetVolume()"));}else{
  352. F_A6(this,new Array(    
  353. "Play","this.IEsound('play')","Pause","this.IEsound('pause')","Stop","this.IEsound('stop')"));}
  354. this.A4("vis");}
  355. if(AO=="txt"){
  356. this.A4("vis");F_A6(this,new Array(    
  357. "Set Font Weight",    "this.style.fontWeight=msg.data","Set Font Size",    "this.style.fontSize=msg.data"));}
  358. if(AO=="tbl"){
  359. this.A4("vis");}
  360. if(AO=="tln"){
  361. if(navigator.appName!='Netscape')
  362. F_A6(this,new Array(    
  363. "Set Color",    "this.style.color=msg.data",
  364. "Set Font Size",    "this.style.fontSize=msg.data"));}
  365. if(AO=="chk"){F_A6(this,new Array(    
  366. "Check","this.Q1.checked=true","Uncheck","this.Q1.checked=false","Focus","this.Q1.focus()","Blur","this.Q1.blur()",
  367. "Set Checked",    "this.Q1.checked=msg.data"));F_A5(this,"J3","Checked");    
  368. this.A4("fob");}
  369. if(AO=="rad"){F_A6(this,new Array(
  370. "Select","this.Q1.checked=true","Check","this.Q1.checked=true","Uncheck","this.Q1.checked=false","Focus","this.Q1.focus()","Blur","this.Q1.blur()",
  371. "Set Checked",    "this.Q1.checked=msg.data","Get Checked",    "msg.returnValue=this.Q1.checked",
  372. "Get Name","msg.returnValue=this.Q1.name"));this.A4("fob");}
  373. if(AO=="tfd"){F_A6(this,new Array(    
  374. "Get Default Value",    "msg.returnValue=this.Q1.defaultValue","Focus",    "this.Q1.focus()","Blur",    "this.Q1.blur()","Select",    "this.Q1.select()","Set Value",    "this.Q1.value=msg.data"));F_A5(this,"J3","Name","Value");this.A4("fob");}
  375. if(AO=="sel"){F_A6(this,new Array(    
  376. "Get Selected Value",    "msg.returnValue=this.Q1.options[this.Q1.selectedIndex].value","Get Selected Index",    "msg.returnValue=this.Q1.selectedIndex","Get Selected Text",    "msg.returnValue=this.Q1.options[this.Q1.selectedIndex].text",
  377. "Select",    "this.Q1.options[msg.data].selected=true","Restore Default Selection",    "F_T4(this)","Delete Option",    "this.Q1.options[msg.data]=null","Add Option",    "this.Q1.options[this.Q1.length]=new Option(msg.data.J8( 'Option Name',''),msg.data.J8( 'Value',''))","Focus",    "this.Q1.focus()","Blur",    "this.Q1.blur()"));F_A5(this,"J3","Name","Length","Options");this.A4("fob");}
  378. if(AO=="btn"){F_A6(this,new Array(    
  379. "Click",    "this.Q1.click()","Focus",    "this.Q1.focus()","Blur",    "this.Q1.blur()"));F_A5(this,"J3","Name","Value");this.A4("fob");}
  380. if(AO=="doc"){F_A6(this,new Array(    
  381. "Set Active Link Color",    "document.alinkColor=msg.data","Set Visited Link Color",    "document.vlinkColor=msg.data","Set Link Color","document.linkColor=msg.data",
  382. "Go To","this.K7(msg.data)","Go To URL","this.K7(msg.data)","Get Location","msg.returnValue=document.location",
  383. "Set Background Color","document.bgColor=msg.data"));
  384. this.A4("vis");this.A4("win");}
  385. if(AO=="win"){F_A6(this,new Array(    
  386. "Set Status Bar",    "msg.returnValue=this.AZ('set status',msg.data)","Open Window","msg.returnValue=this.AZ('open',msg.data)","Resize To","this.AZ('resize to',msg.data)","Resize By","this.AZ('resize by',msg.data)","Reposition To","this.AZ('move to',msg.data)","Reposition By","this.AZ('move by',msg.data)","Scroll To","this.AZ('scroll to',msg.data)","Scroll By","this.AZ('scroll by',msg.data)","Close","window.close()","Focus Window","window.focus()","Blur Window","window.blur()","Alert","window.alert(msg.data)","Confirm","msg.returnValue=window.confirm(msg.data)",
  387. "Prompt","msg.returnValue=this.AZ('prompt',msg.data)","Check Browser Type",    "msg.returnValue=this.AZ('browser type',msg.data)","Message To Window","this.AZ('message to window',msg.data)","Get Opener","msg.returnValue=window.opener",
  388. "Get Name","msg.returnValue=window.name","Set Name","window.name=msg.data","Check Closing",    "this.C2()"));    
  389. }
  390. if(AO=="lyr" || AO=="wht"){this.A4("vis");}
  391. if(AO=="fob"){F_A6(this,new Array(    
  392. "Get Form",    "msg.returnValue=this.H9","Get Form Object",    "msg.returnValue=this.I9(this.H9.name)"));}
  393. }
  394. F_R7("F_E2.prototype.",
  395. "setLowsrc",
  396. "setImage","useImage","setImageLoad","setSrc","AZ","IEsound"
  397. );    
  398. F_prototype("F_cMain.prototype.",
  399. "commandsInit","F_commandsInit"
  400. );    
  401.